﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BUGCOME.Model.File
{
    /// <summary>
    /// 免费文件配置表
    /// </summary>
    [Table("fileFree")]
    [Tenant("5")]
    public class FileFree 
    {
        /// <summary>
        /// 文件ID（关联fileBase.Id）
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = false)]
        public long FileId { get; set; }
        /// <summary>
        /// 下载次数限制（0=无限制）
        /// </summary>
        public int DownloadLimit { get; set; } = 0;

        /// <summary>
        /// 免费有效期
        /// </summary>
        public DateTime? ExpireAt { get; set; }
    }
}
